package com.shz.controller;


import com.shz.pojo.BaseCate;
import com.shz.pojo.Category;
import com.shz.service.BaseCateService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author shz
 * @since 2024-08-12
 */
@Api(tags = "基地分类模块")
@RestController
@RequestMapping("/base-cate")
    public class BaseCateController {

    @Resource
    BaseCateService baseCateService;

    @ApiOperation(value = "获取所有基地的分类")
    @GetMapping("/selectAll")
    public List<BaseCate> getAllCategory(){
        return baseCateService.query().list();
    }
}

